<template>
  <div class="ServiceCard">
    <div class="left">
      <img class="img" color="red" :src="list.url" alt />
    </div>
    <div class="right">
      <div class="t1">{{list.title}}</div>
      <div class="t2">{{list.desc}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ServiceCard",
  props: {
    list: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {};
  },
  mounted() {
    this.initial();
  },
  methods: {
    async initial() {}
  }
};
</script>

<style lang="scss" scoped>
.ServiceCard {
  width: 47%;
  height: 130px;
  margin-bottom: 40px;
  border: 1px solid #e0e1e1;
  background: #fff;
  box-shadow: 0px 1px 3px 2px rgba(189, 189, 189, 0.4);
  display: flex;
  align-items: center;
  .left {
    border-radius: 100%;
    border: 2px solid #0f83eb;
    width: 80px;
    height: 80px;
    margin-left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    .img {
      width: 60px;
      height: 60px;
    }
  }
  .right {
    flex: 1;
    height: 100%;
    margin-left: 20px;
    padding: 15px 0;
    box-sizing: border-box;
    overflow: hidden;
    .t1 {
      margin-bottom: 5px;
      font-family: Open Sans;
      font-weight: 600;
      font-size: 1.125em;
      line-height: 1.55;
      color: rgb(51, 51, 51);
      color: #0f83eb;
    }
    .t2 {
      //   margin-bottom: 16px;
      font-family: Open Sans;
      font-weight: 400;
      font-size: 16px;
      line-height: 1.6;
      color: rgb(153, 153, 153);
    }
  }
  @media screen and (max-width: 767px) {
    width: 95%;
    height: 280px;
    flex-direction: column;
    padding-top: 30px;
    text-align: center;
    .right{
      margin: 0;
      margin-top: 30px;
      padding: 0 20px;
    }
  }
}
</style>
